<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>通道全部统计</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
    <link rel="shortcut icon" href="/static/favicon.ico" type="image/x-icon"/>
    <link rel="stylesheet" href="/static/css/font.css">
    <link rel="stylesheet" href="/static/css/xadmin.css">
    <script type="text/javascript" charset="utf-8" src="/static/js/jquery-1.11.3.min.js"></script>
    <script src="/static/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="/static/js/xadmin.js"></script>
</head>

<body>
<div class="x-nav">
      <span class="layui-breadcrumb">
        <a href="/admin/welcomepage">首页</a>
       <a href="javascript:window.location.reload();">
          <cite>通道全部统计</cite>
        </a>
      </span>
    <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right"
       href="javascript:void(0);" onclick="reload_iframe();" title="刷新">
        <i class="layui-icon" style="line-height:30px">ဂ</i>
    </a>
</div>
<div class="x-body">
    <blockquote class="layui-elem-quote">此处计算各支付通道全部的资金流动信息!
        <span class="x-right" style="line-height:40px" th:text="'共有数据：'+${size}+' 条'"></span>
    </blockquote>
    <div class="layui-row">
        <form class="layui-form layui-col-md12 x-so" action="/admin/count/conn_all" id="ajaxForm" onsubmit="load_msg()">
            &nbsp;开始日期:&nbsp;<input type="text" id="dewdewdedew" name="date1" placeholder="请选择开始日期"
                                    th:value="${#dates.format(date1,'yyyy-MM-dd')}" class="layui-input">
            &nbsp;结束日期:&nbsp;<input type="text" id="dewdewdedew2" name="date2" placeholder="请选择结束日期"
                                    th:value="${#dates.format(date2,'yyyy-MM-dd')}" class="layui-input">
            <button class="layui-btn" type="submit"><i class="layui-icon">&#xe615;</i></button>
        </form>
    </div>
    <div id="dewdewfef">
        <table class="layui-table">
            <thead>
            <tr>
                <th>ID</th>
                <th>通道名</th>
                <th>类型</th>
                <th>已支付金额</th>
                <th>未支付金额</th>
                <th>已支付订单</th>
                <th>未支付订单</th>
                <th>已退款</th>
                <th>手续费</th>
                <th>优惠</th>
            </thead>
            <tbody>
            <tr th:each="o,state:${list}">
                <td th:text="${o.conn_id}"></td>
                <td th:text="${o.epay_name}"></td>
                <td th:text="${#pay.getConnTypeName(o.epay_type)}"></td>
                <td th:text="${o.pay_money}+'元'"></td>
                <td th:text="${o.unpay_money}+'元'"></td>
                <td th:text="${o.pay_order}+'个'"></td>
                <td th:text="${o.unpay_order}+'个'"></td>
                <td th:text="${o.refunnd_money}+'元'"></td>
                <td th:text="${o.change_sett}+'元'"></td>
                <td th:text="${o.sale_money}+'元'"></td>
            </tr>
            </tbody>
        </table>
    </div>
</div>
</body>
<script th:inline="javascript">

    window.onload = close_loading_msg();

    function reload_iframe() {
        parent.obj = parent.layer.load(0);
        location.replace(location.href);
    }

    $(function () {
        layui.use('laydate', function () {
            var laydate = layui.laydate;
            laydate.render({
                elem: '#dewdewdedew', //指定元素
                format: 'yyyy-MM-dd',
                value: "[(${#dates.format(date1,'yyyy-MM-dd')})]"
            });
            laydate.render({
                elem: '#dewdewdedew2', //指定元素
                format: 'yyyy-MM-dd',
                value: "[(${#dates.format(date2,'yyyy-MM-dd')})]"
            });
        });
    });

</script>
</html>